<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增轮值倒班信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-turns-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">后夜班：</label>
                <div class="col-sm-8">
                    <select  class="form-control" name="data1" th:with="type=${@dutyTeam.selectDutyTeamList(null)}">
                                    <option th:each="dict : ${type}" th:text="${dict.name}" th:value="${dict.identify}"></option>
                   </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">白班：</label>
                <div class="col-sm-8">
                     <select  class="form-control" name="data2" th:with="type=${@dutyTeam.selectDutyTeamList(null)}">
                                    <option th:each="dict : ${type}" th:text="${dict.name}" th:value="${dict.identify}"></option>
                   </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">中班：</label>
                <div class="col-sm-8">
                     <select  class="form-control" name="data3" th:with="type=${@dutyTeam.selectDutyTeamList(null)}">
                                    <option th:each="dict : ${type}" th:text="${dict.name}" th:value="${dict.identify}"></option>
                   </select>
                </div>
            </div>
             <div class="form-group">    
                <label class="col-sm-3 control-label">前夜班：</label>
                <div class="col-sm-8">
                     <select  class="form-control" name="data4" th:with="type=${@dutyTeam.selectDutyTeamList(null)}">
                                    <option th:each="dict : ${type}" th:text="${dict.name}" th:value="${dict.identify}"></option>
                   </select>
                </div>
            </div>
            
 			 <div class="form-group">    
                <label class="col-sm-3 control-label">排序：</label>
                <div class="col-sm-8">
                    <input name="orderno" type="number" placeholder="请输入" class="form-control">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "duty/turns"
        $("#form-turns-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-turns-add').serialize());
            }
        }
    </script>
</body>
</html>